/*
 * @Description:
 * @Author: fhw
 * @Date: 2022-08-06 13:48:11
 */
import { forwardRef, Module } from '@nestjs/common'
import { SysMessageService } from './sys_message.service'
import { SysMessageController } from './sys_message.controller'
import { TypeOrmModule } from '@nestjs/typeorm'
import { SysMessage } from './entities/sys_message.entity'
import { ChatUser } from '../chat_user/entities/chat_user.entity'
import { ChatUserModule } from '../chat_user/chat_user.module'
import { ConfigModule } from 'src/socket/config/config.module'

@Module({
  imports: [
    TypeOrmModule.forFeature([SysMessage, ChatUser]),
    forwardRef(() => ChatUserModule),
    forwardRef(() => ConfigModule),
  ],
  controllers: [SysMessageController],
  providers: [SysMessageService],
  exports: [SysMessageService],
})
export class SysMessageModule { }
